package com.souche.employment.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import com.souche.employment.domain.TagDO;

/**
 * 
 * userMapper.java created at 2017年8月9日 下午2:23:36
 * @author Ray [email:rayinhangzhou@hotmail.com]
 * Revision History
 * Date            Programmer                   Notes
 * ----------------------------------------------------------
 **/
@Mapper
public interface TagMapper {

	@SelectProvider(type=SqlProvider.class, method="getTagNamesByType")
	List<String> getNamesByType(String type);
	
	@Insert("insert into tag (id, type, name, creater) values(#{id}, #{type}, #{name}, #{creater})")
	void addTag(TagDO tagDO);
	
}
